<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="__ROOT__/Public/Admin/css/shortcut icon" href="favicon.ico">
    <link href="__ROOT__/Public/Admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/animate.css" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/js/plugins/cityPicker/city-picker.css" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/js/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/edit.css" rel="stylesheet"/>

<style>

</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
       
        <div class="row">
            <form class="form-horizontal m-t js-ajax-forms" id="signupForm" action="<if condition="$editdata">{:U('Admin/Bill/update')}<else />{:U('Admin/Bill/add')}</if>" method="post" enctype="multipart/form-data">
            <input type="hidden" name="ID" value="{$editdata['ID']}">
            <div class="col-sm-8  col-md-offset-2">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">选择合同 * </label>
                                <div class="col-sm-8">
                                    <input id="ContractName" name="ContractName" class="form-control selector-icon" type="text" aria-required="true" aria-invalid="true" class="error" value="{$editdata.ContractName}">

                                    <input id="ContractID"  type='hidden'  name="ContractID" aria-required="true" aria-invalid="true" class="error" value='{$editdata.ContractID}'>
                                </div>
                            </div>
                            
                            
                            <div class="form-group">
                                <hr/>
                            </div>
                          

                            <div class="form-group">
                                <label class="col-sm-3 control-label"> 支出金额/开票金额 * </label>
                                <div class="col-sm-8">
                                    <input id="Bill" name="Bill"  class="form-control" type="text" aria-required="true" aria-invalid="true" class="error" type="text"  value="{$editdata.Bill}">
                                </div>
                            </div>

                            
                            
                            <div class="form-group">
                                <hr/>
                            </div>
                      
                            <div class="form-group">
                                <label class="col-sm-3 control-label">起草人 * </label>
                                <div class="col-sm-8">
                                    <input id='UserID'  aria-required="true" aria-invalid="true" class="error" name='UserID' value="{$editdata.UserID}" type="hidden">
                                    <input id="UserName" name="UserName" class="form-control selector-icon" name="ContractType" aria-required="true" aria-invalid="true" class="error" onclick="openselector('UserID','UserName')" data-toggle="modal" data-target="#myModal" type="text"  value="{$editdata.UserName}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">起草部门 * </label>
                                <div class="col-sm-8">
                                    <input id='DepID'  aria-required="true" aria-invalid="true" class="error" name='DepID' value="{$editdata.DepID}" type="hidden">
                                    <input id="DepName" name="DepName" class="form-control selector-icon"  name="ContractType" aria-required="true" aria-invalid="true" class="error" onclick="openselector('DepID','DepName')" data-toggle="modal" data-target="#myModal" type="text"  value="{$editdata.DepName}">
                                </div>
                            </div>
                            

                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <a class="btn btn-white" href="javascript:void(0);" onclick="self.location=document.referrer;">返回</a>
                                    &nbsp&nbsp&nbsp
                                    <button class="btn btn-primary keep" type="submit">保存</button>
                                </div>
                            </div>
                        
                    </div>
                </div>
            </div>
           
            </form>
        </div>
    </div>
    <script src="__ROOT__/Public/Admin/js/jquery.min.js"></script>
    <script src="__ROOT__/Public/Admin/js/bootstrap.min.js"></script>
    <script src="__ROOT__/Public/Admin/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__ROOT__/Public/Admin/js/plugins/layer/layer.min.js"></script>
    <script src="__ROOT__/Public/Admin/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="__ROOT__/Public/Admin/js/ajaxForm.js"></script>
    <script src="__ROOT__/Public/Admin/js/plugins/sweetalert/sweetalert.min.js"></script>
    <link href="__ROOT__/Public/Admin/css/selector/selectorstyle.css" rel="stylesheet"/>
    <script src="__ROOT__/Public/Admin/js/plugins/selector/selector.js"></script>
    <script src="__ROOT__/Public/Admin/js/plugins/selector/jquery.ztree.all.js"></script>
    <script src="__ROOT__/Public/Admin/js/Contract/bill.js"></script>

</body>

</html>
